Return to doc.sitecore.com

Documentation

 

1.  Description

The Link XSL is a rendering used for displaying links stored in Sitecore Items.   

The picture below shows an example of a Link rendering:

      Sitecore  

Please refer to the XSL section for more information about creating XSL renderings.

 

2.  Installation Guide

The XSL Link rendering is distributed as a standard Sitecore package; hence in order to start using it, you should install the package. Please refer to the ' Installing Modules and Packages ' article if you are not familiar with the standard Sitecore Packager tool..

After the package installation, you will see the XSL Link rendering in the list of XSL renderings.

Thus you will be able to place it on a (sub)layout or tie via placeholder like any usual rendering.

 

3.  User Manual

The Link is an XSL rendering, thus you can work with it like with any other XSL rendering.

The Link XSL rendering is adjusted via several parameters.  

  

Open the Parameters tab of the rendering (double-click on the rendering) and set properties as described in the example below.

You can also define the properties in the xslSimpleMenu rendering (see <!--parameter --> section in the rendering’s source code).

 

   

Valid Attributes:  

TextField

Property value:

The name of the field that contains the link’s text.

Note:

If the field for the Link’s text is not defined or empty, the text from the link’s description will be shown. If this value is empty, the Item’s name will be shown.

 

LinkField

Property value:

The nme of the field that contains the link.

 

TextClass

Property value:

The CSS class name for the link’s text

 

TextStyle

Property value:

The CSS style for the link’s text.

 

LinkClass

Property value:

The CSS class name for the link (the link is placed in the div layer)

 

LinkStyle

Property value:

The CSS style for the link (the link is placed in the div layer).